<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>表单-exercise</title>
    <script src="https://cdn.jsdelivr.net/npm/vue"></script>
    <style>
        .Style{
            color: #2d2d2d;
            background-color: lightpink;
            font-size: 1.6rem;
            font-weight: bold;
        }
    </style>
</head>
<body>
<div id="app">
    <h2>你最喜欢的NBA球星是：</h2>
    <select name="" id="star" v-model="star">
        <option value="科比">科比</option>
        <option value="詹姆斯">詹姆斯</option>
        <option value="哈登">哈登</option>
        <option value="杜兰特">杜兰特</option>

    </select>


    <h2>我的全明星：</h2>

    <select v-model="multipled" multiple style="width: 200px;height: 220px">
        <option value="阿德托昆博">阿德托昆博</option>
        <option value="怀特塞德">怀特塞德</option>
        <option value="阿尔德里奇">阿尔德里奇</option>
        <option value="戴维斯">戴维斯</option>
        <option value="格里芬">格里芬</option>
        <option value="詹姆斯">詹姆斯</option>
        <option value="杜兰特">杜兰特</option>
        <option value="巴特勒">巴特勒</option>
        <option value="德罗赞">德罗赞</option>
        <option value="哈登">哈登</option>
        <option value="科比">科比</option>
        <option value="韦德">韦德</option>
        <option value="哈登">哈登</option>
        <option value="科比">科比</option>
        <option value="韦德">韦德</option>
    </select>
    <h3>选择结果</h3>
    <p>我最最喜欢的是：{{star}}</p>

    <p>我的全明星是：{{multipled}}</p>
</div>


<script>
    var app= new Vue({
        el:'#app',
        data:{
            star:'科比',
            multipled:'',
        },
        methods:{

        }
    })
</script>
</body>
</html>
